package com.swing_pinea.render;

import javax.swing.*;
import java.awt.*;


public class UIPanel extends JPanel {

    private JLabel scoreLabel;
    private JButton pauseBtn;

    public UIPanel() {
        setLayout(new FlowLayout(FlowLayout.LEFT, 20, 10));
        setOpaque(false);

        scoreLabel = new JLabel("Score: 0");
        scoreLabel.setFont(new Font("Arial", Font.BOLD, 20));
        scoreLabel.setForeground(Color.WHITE);
        add(scoreLabel);

        pauseBtn = new JButton("Pause");
        pauseBtn.addActionListener(e -> {
            System.out.println("Pause button clicked");
        });
        add(pauseBtn);
    }
}
    